package cn.chiship.framework.upms.biz.user.mapper;

import cn.chiship.framework.upms.biz.user.entity.UpmsUserOrganizationExample;
import cn.chiship.framework.upms.biz.user.pojo.vo.UpmsUserOrganizationVo;
import cn.chiship.sdk.framework.base.BaseMapper;
import cn.chiship.framework.upms.biz.user.entity.UpmsUserOrganization;

import java.util.HashMap;
import java.util.List;

/**
 * @author lj
 * 用户与组织关联表Mapper
 */
public interface UpmsUserOrganizationMapper extends BaseMapper<UpmsUserOrganization, UpmsUserOrganizationExample> {

    /**
     * 根据用户及机构类型获取机构集合
     *
     * @param userId
     * @param type
     * @return
     */
    List<String> listOrganizationId(String userId, Byte type);



    /**
     * 联合查询用户与组织
     *
     * @param params
     * @return
     */
    List<UpmsUserOrganizationVo> selectUserAndOrg(HashMap<String, Object> params);

}